package com.xcity.game.employee.response;

import com.xcity.db.entity.Player;
import com.xcity.game.common.ItemResponse;
import com.xcity.game.item.ItemInfo;

public class EmployeeLevelUpRequired extends ItemResponse {
	
	private int ownedCount; // 当前拥有数量
	
	public EmployeeLevelUpRequired(ItemInfo refer, Player player) {
		super(refer);
		this.ownedCount = player.getBag().countOf(refer.getId());
	}
	
	public EmployeeLevelUpRequired(int itemId, int count, Player player) {
		super(itemId, count);
		this.ownedCount = player.getBag().countOf(itemId);
	}
	
	public EmployeeLevelUpRequired(int itemId, int count, String name, String icon, String desc, int ownedCount) {
		super(itemId, count, name, icon, desc);
		this.ownedCount = ownedCount;
	}

	public int getOwnedCount() {
		return ownedCount;
	}

	public void setOwnedCount(int ownedCount) {
		this.ownedCount = ownedCount;
	}
}
